cody - HTMLify profile

cody
4270 Files
632698 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/136 - Block Runner
:root {
--background-light-color: #57ebd7;
--background-dark-color: #24a88b;
--main-background-gradient: linear-gradient(to right, var(--background-light-color) 0%, var(--background-dark-color) 100%);
}
body{
--background-light-color: #57ebd7;
--background-dark-color: #24a88b;
--main-background-gradient: linear-gradient(to right, var(--background-light-color) 0%, var(--background-dark-color) 100%);
}
body{
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Block Runner game</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Block Runner game</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
var i = 0;
function random( min, max ) {
return Math.round( min + ( Math.random() * ( max - min ) ) );
}
function randomChoice(array){
return array[ Math.round( random( 0, array.length - 1 ) ) ];
function random( min, max ) {
return Math.round( min + ( Math.random() * ( max - min ) ) );
}
function randomChoice(array){
return array[ Math.round( random( 0, array.length - 1 ) ) ];